#pragma once
#include "libutilsbase.h"
#include "ICECPPNetTransportDef.h"
#include <Ice/Application.h>
#include "ice/Ice.h"
#include "basiccall.h"
namespace nettransport
{


	class ICENTAPI CNetClient
	{
	public:
		CNetClient(void);


		bool Initialize(void* pParam);
		virtual void UnInitialize();

		nettransport::IBasicCallPrx GetIBasicCallPrx(tstring id);
		~CNetClient(void);

	private:
		Ice::CommunicatorPtr m_ic;
		
		std::map<tstring,nettransport::IBasicCallPrx> m_prxs;
		std::string m_port;
		std::string m_addr;
	};

};